<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery-jsonp</title>
    <style>
        #result{
            width:300px;
            height:100px;
            border:solid 1px #089;
        }
    </style>
    <script crossorigin="anonymous" src='https://cdn.bootcss.com/jquery/3.5.0/jquery.min.js'></script>
</head>
<body>
    <button id="btn1">点击发送 jsonp 请求</button>
    <div id="result">

    </div>
    <script>
        var btn1 = document.getElementById('btn1')
        btn1.onclick = function () {
            $.getJSON('http://127.0.0.1:8000/jQuery-jsonnp?name=小周&callback=?',function (response) {
                let result = document.getElementById('result')
                // console.log(response)
                result.innerHTML = response.name + response.descp
            })
        }
    </script>
</body>
</html>